import { ROLE_ADMIN } from '../../constants'

const menuList = [
  {
    key: 'home',
    label: '后台首页',
    icon: 'home',
    path: '/'
  },
  {
    key: 'order',
    label: '订单管理',
    icon: 'profile',
    children: [
      {
        key: 'order-all',
        label: '全部订单',
        path: '/order/all'
      },
      {
        key: 'order-new',
        label: '新订单',
        path: '/order/new',
        allowRoles: [ROLE_ADMIN]
      },
      {
        key: 'order-exported',
        label: '已导出订单',
        path: '/order/exported',
        allowRoles: [ROLE_ADMIN]
      },
      {
        key: 'order-import',
        label: '导入数据',
        path: '/order/import',
        allowRoles: [ROLE_ADMIN]
      },
      {
        key: 'order-delivered',
        label: '已发货订单',
        path: '/order/delivered',
        allowRoles: [ROLE_ADMIN]
      },
      {
        key: 'order-pending',
        label: '待处理订单',
        path: '/order/pending',
        allowRoles: [ROLE_ADMIN]
      },
      {
        key: 'order-processed',
        label: '已处理订单',
        path: '/order/processed',
        allowRoles: [ROLE_ADMIN]
      },
      {
        key: 'order-unmatch',
        label: '未匹配订单',
        path: '/order/unmatch',
        allowRoles: [ROLE_ADMIN]
      },
      {
        key: 'order-activated',
        label: '已激活订单',
        path: '/order/activated',
        allowRoles: [ROLE_ADMIN]
      },
      {
        key: 'order-recycle',
        label: '回收站',
        path: '/order/recycle',
        allowRoles: [ROLE_ADMIN]
      }
    ]
  },
  {
    key: 'product',
    label: '产品管理',
    icon: 'appstore',
    allowRoles: [ROLE_ADMIN],
    children: [
      {
        key: 'product-channel',
        label: '产品渠道',
        path: '/product/channel'
      },
      {
        key: 'product-list',
        label: '在售商品',
        path: '/product/list'
      }
    ]
  },
  {
    key: 'setting',
    label: '系统设置',
    icon: 'setting',
    allowRoles: [ROLE_ADMIN],
    children: [
      {
        key: 'setting-cmcc',
        label: '集团移动花卡',
        path: '/setting/cmcc'
      },
      {
        key: 'setting-user',
        label: '用户管理',
        path: '/setting/user'
      },
      {
        key: 'setting-role',
        label: '角色列表',
        path: '/setting/role'
      }
    ]
  }
]

export default menuList
